<{layout name="admin/layout/default" /}>
<div class="row" id="edit_role" data-page="role/edit">
    <div class="row">
        <div class="col-lg-12">
            <a class="btn btn-default" href="<{:url('admin/role/list')}>">返回</a>
        </div>
    </div>

    <hr />
    <div class="col-lg-12">
        <div class="row m-t">
            <div class="col-lg-4 col-lg-offset-4">
                <div class="form-group">
                    <label>名称</label>
                    <input type="text" class="form-control" v-model="name">
                </div>
            </div>
        </div>

        <div class="row m-t">
            <div class="col-lg-4 col-lg-offset-4">
                <div class="form-group">
                    <label>标识</label>
                    <input type="text" class="form-control" :disabled="this.id" v-model="slug">
                </div>
            </div>
        </div>

        <div class="row m-t">
            <div class="col-lg-4 col-lg-offset-4">
                <div class="form-group">
                    <label>状态 </label>
                    <label class="radio-inline">
                        <input type="radio" name="status" value="1" v-model="status">启用
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="status" value="2" v-model="status">禁用
                    </label>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-2 col-lg-offset-5 m-b-xl">
                <div class="btn btn-primary btn-block" @click="submit()">提交</div>
            </div>
        </div>
    </div>
</div>
